package com.victualler.core.config.permission.entity;

import com.victualler.core.base.dao.BaseDao;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Aouthor Guoshichang
 * @Date 14:06 on 2018/7/4.
 * @Function 用户角色表
 */
@Entity
@Table(name="common_user_role")
public class UserRoleDao extends BaseDao implements Serializable{
    //用户id
    private Long userId;
    //角色id
    private Long roleId;

    public UserRoleDao() {
    }

    public UserRoleDao(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
